package apps.AfterDlcs.afterDlcsBL.world;

import apps.AfterDlcs.AfterDlcs;
import apps.AfterDlcs.afterDlcsBL.hero.Hero;
import backs.dataBase.DBNormal;

public class WorldBL
{
    public static int START_HERO_ID=1001;
    public static int getNowHeroID(int worldID)
    {
        return Integer.parseInt(DBNormal.getValue(AfterDlcs.dbName, worldID, "nowHeroID", (START_HERO_ID-1)+"",false));
    }

    public static String getWorldValue(int worldID,String key)
    {
        return DBNormal.getValue(AfterDlcs.dbName, worldID, key);
    }

    public static String getWorldValue(int worldID,String key,String defaultValue,boolean reset)
    {
        return DBNormal.getValue(AfterDlcs.dbName, worldID, key,defaultValue,reset);
    }

}
